package com.supcon.exchangedata.pojo.entity.oracle;

import lombok.Data;

import javax.persistence.*;
import javax.persistence.Column;
import javax.persistence.Table;
import java.sql.Date;
import java.time.LocalDate;
import java.time.LocalDateTime;
import java.util.Objects;

/**
 * Created with IntelliJ IDEA.
 *
 * @Author: yangbin
 * @Date: 2022/03/25/12:03
 * @Description:
 */
@Entity
@Table(name = "BASE_DATE")
@Data
public class BaseDate {


    @Basic
    @Column(name = "YEAR_INT")
    private Integer yearInt;

    /**
     * 自然月
     */
    @Basic
    @Column(name = "NATURAL_MONTH_INT")
    private Integer naturalMonthInt;
    /**
     * 工作月
     */
    @Basic
    @Column(name = "WORK_MONTH_INT")
    private String workMonthInt;
    @Basic
    @Column(name = "DAY_INT")
    private Integer dayInt;
    @Basic
    @Column(name = "NATURAL_MONTH_STR")
    private String naturalMonthStr;
    @Basic
    @Column(name = "WORK_MONTH_STR")
    private String workMonthStr;
    @Basic
    @Id
    @Column(name = "DAY_STR")
    private String dayStr;
    @Basic
    @Column(name = "DTDATE")
    private LocalDateTime dtdate;
    /**
     * 周
     */
    @Basic
    @Column(name = "WEEK_STR")
    private String weekStr;

    /**
     * 季度
     */
    @Basic
    @Column(name = "QUARTER_STR")
    private String quarterStr;
    @Basic
    @Column(name = "BLNREST")
    private Integer blnrest;
    @Basic
    @Column(name = "WEEK_INT")
    private Integer weekInt;
    @Basic
    @Column(name = "HOLIDAY")
    private String holiday;
}
